package com.logwire.config.shiro;import com.logwire.dto.UserDTO;import org.apache.shiro.SecurityUtils;/** * @author yhou * @ProjectName single * @description * @date 2023/05/23 */public class ShiroUtils {	public static UserDTO getUser() {		final UserDTO user = (UserDTO) SecurityUtils.getSubject().getPrincipal();		return user;	}}